original_docstring: 
      Iterate over directories in dir_to_scan, load json from env._info.json,
      adn replace environment version id
  
      Parameters
      ----------
      dir_to_scan: str
          folder with drop in environments
      
docstring: Iterate over directories in dir_to_scan, load json from env._info.json,
  adn replace environment version id
  
  Parameters
  
  str
  folder with drop in environments
docstring_tokens: Iterate over directories in dir_to_scan load json from env . _info . json adn replace environment version id Parameters str folder with drop in environments
code: def main(dir_to_scan):
      """
      Iterate over directories in dir_to_scan, load json from env._info.json,
      adn replace environment version id
  
      Parameters
      ----------
      dir_to_scan: str
          folder with drop in environments
      """
      for item in os.listdir(dir_to_scan):
          item_abs_path = os.path.abspath(os.path.join(dir_to_scan, item))
          if os.path.isdir(item_abs_path):
              env_info_json = os.path.join(item_abs_path, ENV_INFO_JSON)
              with open(env_info_json) as json_file:
                  metadata = json.load(json_file)
                  metadata["environmentVersionId"] = str(ObjectId())
              with open(env_info_json, "w") as json_file:
                  json.dump(metadata, json_file, indent=2)
                  json_file.write("\n")
code_tokens: def main ( dir_to_scan ) : for item in os . listdir ( dir_to_scan ) : item_abs_path = os . path . abspath ( os . path . join ( dir_to_scan , item ) ) if os . path . isdir ( item_abs_path ) : env_info_json = os . path . join ( item_abs_path , ENV_INFO_JSON ) with open ( env_info_json ) as json_file : metadata = json . load ( json_file ) metadata [ "environmentVersionId" ] = str ( ObjectId ( ) ) with open ( env_info_json , "w" ) as json_file : json . dump ( metadata , json_file , indent = 2 ) json_file . write ( "\n" )
short_docstring: Iterate over directories in dir_to_scan, load json from env._info.json,
  adn replace environment version id
short_docstring_tokens: Iterate over directories in dir_to_scan load json from env . _info . json adn replace environment version id
comment: """
      Iterate over directories in dir_to_scan, load json from env._info.json,
      adn replace environment version id
  
      Parameters
      ----------
      dir_to_scan: str
          folder with drop in environments
      """