def create_stubs(skylark_stubs, load_symbols):
  """Combines Skylark stubs with loaded symbols.

  This function creates a copy of the global Skylark stubs and combines them
  with symbols from the list of load_extractor.LoadSymbol, which contain
  information about symbols extracted from other .bzl files. The stubs created
  for the loaded symbols are global variables set to the empty string.

  Args:
    skylark_stubs: Dict containing the Skylark global stubs.
    load_symbols: List of load_extractor.LoadSymbol objects containing
      information about symbols extracted from other .bzl files.

  Returns:
    Dictionary containing both the Skylark global stubs and stubs created for
    the loaded symbols.
  """
  stubs = dict(skylark_stubs)
  for load_symbol in load_symbols:
    if load_symbol.alias:
      stubs[load_symbol.alias] = ""
    else:
      stubs[load_symbol.symbol] = ""
  return stubs