from typing import Tuple


def SeparateFieldNamespace(qualified_field_name: str) -> Tuple[str, str]:
  """Returns the namespace and its field name as separate values or an Error.

  Args:
    qualified_field_name: a qualified field string like `HVAC/run_status`
  Throws:
    TypeError: if the field is not qualified
  """
  fqf_parsed = qualified_field_name.split('/')

  if len(fqf_parsed) == 1:
    raise TypeError('Type improperly formatted, a namespace is missing: ',
                    fqf_parsed)

  if len(fqf_parsed) > 2:
    raise ValueError('Type improperly formatted, too many separators: ',
                     fqf_parsed)

  return fqf_parsed[0], fqf_parsed[1]