code: def intify(x):
      '''
      Ensure ( or coerce ) a value into being an integer or None.
  
      Args:
          x (obj):    An object to intify
  
      Returns:
          (int):  The int value ( or None )
      '''
      if isinstance(x, int):
          return x
  
      try:
          return int(x, 0)
      except (TypeError, ValueError):
          return Nonf intify(x):
      '''
      Ensure ( or coerce ) a value into being an integer or None.
  
      Args:
          x (obj):    An object to intify
  
      Returns:
          (int):  The int value ( or None )
      '''
      if isinstance(x, int):
          return x
  
      try:
          return int(x, 0)
      except (TypeError, ValueError):
          return None
docs: Ensure ( or coerce ) a value into being an integer or None.
  
      Args:
          x (obj):    An object to intify
  
      Returns:
          (int):  The int value ( or None )