code: def test_has_no_args(self) -> None:
      with self.assertRaises(TypeError):
          unpack_optional(None)
      with self.assertRaises(TypeError):
          unpack_optional(42)
      with self.assertRaises(TypeError):
          unpack_optional("foo")
      with self.assertRaises(TypeError):
          unpack_optional(bool)
      with self.assertRaises(TypeError):
          unpack_optional(float)
  
imports: from enum import Enum
  from typing import ClassVar, Dict, List, Optional, Union
  from unittest import main, TestCase
  import attr
  from torchbiggraph.schema import Dumper, extract_nested_type, inject_nested_value, Loader, Schema, schema, unpack_optional
label_desc: Use image node_id 1 for calling the TestUnpackOptional obj's underlying member method code with example usage: obj.test_has_no_args() without return types