code: def update_package_config():
      
      try:
          import importlib
          import sys
          import json
  
          path = importlib.machinery.PathFinder().find_spec('sentinelhub', sys.path[1:]).submodule_search_locations[0]
          old_config_filename = os.path.join(path, 'config.json')
  
          with open(old_config_filename, 'r') as file:
              old_config = json.load(file)
  
          from sentinelhub.config import SHConfig
  
          config = SHConfig()
          for attr, value in old_config.items():
              if hasattr(config, attr) and not getattr(config, attr):
                  setattr(config, attr, value)
  
          config.save()
  
      except BaseException:
          pass
docs: Every time sentinelhub package is installed entire config.json is overwritten. However this function
      will check if sentinelhub is already installed and try to copy those parameters from old config.json that are by
      default set to an empty value (i.e. instance_id, aws_access_key_id and aws_secret_access_key) into new config.json
      file.