parameters: ()
return_statement: return to_return
docstring: Gets the Resources JSON.
  
      :returns: The Resources JSON (as a Python Dictionary).
docstring_summary: Gets the Resources JSON.
docstring_tokens: Gets the Resources JSON .
function: def _get_resources_json() -> Dict:
      """
      Gets the Resources JSON.
  
      :returns: The Resources JSON (as a Python Dictionary).
      """
  
      # Note: Google Source does not properly support obtaining files as raw
      # text. Therefore when we open the URL we receive the JSON in base64
      # format. Conversion is needed before it can be loaded.
      with urllib.request.urlopen(_get_resources_json_uri()) as url:
          to_return = json.loads(base64.b64decode(url.read()).decode("utf-8"))
  
      # If the current version pulled is not correct, look up the
      # "previous-versions" field to find the correct one.
      version = _resources_json_version_required()
      if to_return["version"] != version:
          if version in to_return["previous-versions"].keys():
              with urllib.request.urlopen(
                      to_return["previous-versions"][version]
                  ) as url:
                  to_return = json.loads(
                      base64.b64decode(url.read()).decode("utf-8")
                  )
          else:
              # This should never happen, but we thrown an exception to explain
              # that we can't find the version.
              raise Exception(
                  f"Version '{version}' of resources.json cannot be found."
                  )
  
      return to_return
function_tokens: def _get_resources_json ( ) -> Dict : # Note: Google Source does not properly support obtaining files as raw # text. Therefore when we open the URL we receive the JSON in base64 # format. Conversion is needed before it can be loaded. with urllib . request . urlopen ( _get_resources_json_uri ( ) ) as url : to_return = json . loads ( base64 . b64decode ( url . read ( ) ) . decode ( "utf-8" ) ) # If the current version pulled is not correct, look up the # "previous-versions" field to find the correct one. version = _resources_json_version_required ( ) if to_return [ "version" ] != version : if version in to_return [ "previous-versions" ] . keys ( ) : with urllib . request . urlopen ( to_return [ "previous-versions" ] [ version ] ) as url : to_return = json . loads ( base64 . b64decode ( url . read ( ) ) . decode ( "utf-8" ) ) else : # This should never happen, but we thrown an exception to explain # that we can't find the version. raise Exception ( f"Version '{version}' of resources.json cannot be found." ) return to_return