code: def make_entity(key):
      """Helper method to make FakeDatastoreEntity.
  
      This method allows to path either tuple or FakeDatastoreKey as a key.
  
      Args:
        key: entity key, either tuple or FakeDatastoreKey
  
      Returns:
        Instance of FakeDatastoreEntity
      """
      if isinstance(key, tuple):
          key = FakeDatastoreKey(*key)
      return FakeDatastoreEntity(key)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import copy
  from io import StringIO
  import six
label_desc: Use image node_id 1 for calling a global function with example usage: make_entity(key) and returns: FakeDatastoreEntity