class_docstr: Base class for defining an agent.
docstr: Import method specified as module_name.method_name.
docstr_tok: ["Import","method","specified","as","module_name.method_name","."]
code: def _import_method(self, path):
      """Import method specified as module_name.method_name."""
      module_name, method_name = path.rsplit(".", 1)
      try:
          module = import_module(module_name)
          method = getattr(module, method_name)
      except (AttributeError, ImportError):
          raise ValueError('Cannot import method: "{0}"'.format(path))
      return method
  
imports: from abc import ABCMeta, abstractmethod
  import numpy
  from importlib import import_module
  from .shared.discretize import BoxSpaceDiscretizer
label_desc: Use image node_id 17 for calling the AgentBaseClass obj's underlying member method code with example usage: obj._import_method(path) and returns: method