code: def define_copy_method(name):
      target = getattr(Random, name)
  
      def implementation(self, **kwargs):
          result = self._hypothesis_do_random(name, kwargs)
          self._hypothesis_log_random(name, kwargs, result)
          return result
  
      sig = inspect.signature(STUBS.get(name, target))
  
      result = define_function_signature(
          target.__name__, target.__doc__, sig
      )(implementation)
  
      result.__module__ = __name__
      result.__qualname__ = "HypothesisRandom." + result.__name__
  
      setattr(HypothesisRandom, name, result)
  
imports: import inspect
  import math
  from random import Random
  from typing import Any, Dict
  import attr
  from hypothesis.control import should_note
  from hypothesis.internal.reflection import define_function_signature
  from hypothesis.reporting import report
  from hypothesis.strategies._internal.core import binary, lists, permutations, sampled_from
  from hypothesis.strategies._internal.numbers import floats, integers
  from hypothesis.strategies._internal.strategies import SearchStrategy
label_desc: Use image node_id 5 for calling a global function with example usage: define_copy_method(name) and returns: result