code: def _make_unsupported_method(name):
      def method(*args, **kwargs):
          raise NotImplementedError(
              "Method %s is not supported on LabelArrays." % name
          )
  
      method.__name__ = name
      method.__doc__ = "Unsupported LabelArray Method: %s" % name
      return method
  
imports: from functools import partial, total_ordering
  from operator import eq, ne
  import re
  import numpy
  from numpy import ndarray
  import pandas
  from toolz import compose
  from zipline.utils.compat import unicode
  from zipline.utils.functional import instance
  from zipline.utils.preprocess import preprocess
  from zipline.utils.sentinel import sentinel
  from zipline.utils.input_validation import coerce, expect_kinds, expect_types, optional
  from zipline.utils.numpy_utils import bool_dtype, unsigned_int_dtype_with_size_in_bytes, is_object, object_dtype
  from zipline.utils.pandas_utils import ignore_pandas_nan_categorical_warning
  from ._factorize import factorize_strings, factorize_strings_known_categories, smallest_uint_that_can_hold
label_desc: Use image node_id 2 for calling a global function with example usage: _make_unsupported_method(name) and returns: method