code: def from_authorized_user_file(cls, filename, scopes=None):
          
          with io.open(filename, 'r', encoding='utf-8') as json_file:
              data = json.load(json_file)
              return cls.from_authorized_user_info(data, scopes)
docs: Creates a Credentials instance from an authorized user json file.
  
          Args:
              filename (str): The path to the authorized user json file.
              scopes (Sequence[str]): Optional list of scopes to include in the
                  credentials.
  
          Returns:
              google.oauth2.credentials.Credentials: The constructed
                  credentials.
  
          Raises:
              ValueError: If the file is not in the expected format.