code: def is_hex_address(value: Any) -> bool:
      
      if not is_text(value):
          return False
      elif not is_hex(value):
          return False
      else:
          unprefixed = remove_0x_prefix(value)
          return len(unprefixed) == 40
docs: Checks if the given string of text type is an address in hexadecimal encoded form.