code: def is_mock(obj):
      """Determine if the given argument is a mock type."""
  
      # We want to be able to detect these when dealing with various test
      # args. As they are sneaky and can look like almost anything else,
      # we'll check this by looking for an attribute with a name that it's really
      # unlikely to implement accidentally, and that anyone who implements it
      # deliberately should know what they're doing. This is more robust than
      # looking for types.
      return hasattr(obj, "hypothesis_internal_is_this_a_mock_check")
  
imports: from __future__ import absolute_import, division, print_function
  import ast
  import hashlib
  import inspect
  import re
  import types
  from functools import wraps
  from types import ModuleType
  from hypothesis.internal.compat import ARG_NAME_ATTRIBUTE, PY2, getfullargspec, hrange, isidentifier, qualname, str_to_bytes, to_str, to_unicode, update_code_location
  from hypothesis.vendor.pretty import pretty
label_desc: Use image node_id 2 for calling a global function with example usage: is_mock(obj) and returns: hasattr