code: def use_smartopen_es(
      file_path, path, transport_params=None, read=True
  ):
      open = import_or_raise("smart_open", SMART_OPEN_ERR_MSG).open
      if read:
          with open(
              path, "rb", transport_params=transport_params
          ) as fin:
              with open(file_path, "wb") as fout:
                  shutil.copyfileobj(fin, fout)
      else:
          with open(file_path, "rb") as fin:
              with open(
                  path, "wb", transport_params=transport_params
              ) as fout:
                  shutil.copyfileobj(fin, fout)
  
imports: import json
  import shutil
  from featuretools.utils.gen_utils import import_or_raise
label_desc: Use image node_id 1 for calling a global function with example usage: use_smartopen_es(file_path, path, transport_params, read) without return types