code: def getOperationName(id: str):
      
      if isinstance(id, str):
          # Some graphene chains (e.g. steem) do not encode the
          # operation_type as id but in its string form
          assert id in operations.keys(), "Unknown operation {}".format(id)
          return id
      elif isinstance(id, int):
          return getOperationNameForId(id)
      else:
          raise ValueError
docs: This method returns the name representation of an operation given
          its value as used in the API