code: def mock_from_cid(cid, record_type, pcp=None):
      """Return pubchem.Compound for the requested cid"""
      records = {
          297: {
              "atoms": {
                  "aid": [1, 2, 3, 4, 5],
                  "element": [6, 1, 1, 1, 1],
              },
              "coords": [
                  {
                      "aid": [1, 2, 3, 4, 5],
                      "conformers": [
                          {
                              "x": [
                                  0,
                                  0.5541,
                                  0.6833,
                                  -0.7782,
                                  -0.4593,
                              ],
                              "y": [
                                  0,
                                  0.7996,
                                  -0.8134,
                                  -0.3735,
                                  0.3874,
                              ],
                              "z": [
                                  0,
                                  0.4965,
                                  -0.2536,
                                  0.6692,
                                  -0.9121,
                              ],
                          }
                      ],
                  }
              ],
          },
          783: {
              "atoms": {"aid": [1, 2], "element": [1, 1]},
              "coords": [
                  {
                      "aid": [1, 2],
                      "conformers": [{"x": [2, 3], "y": [0, 0]}],
                  }
              ],
          },
      }
  
      if [cid, record_type] in [[297, "3d"], [783, "2d"]]:
          return pcp.Compound(records[cid])
  
      raise pcp.NotFoundError if [cid, record_type] == [
          783,
          "3d",
      ] else ValueError("Provided CID (or Identifier) is None.")
  
imports: import os
  import sys
  import functools
  from unittest.mock import patch
  import pytest
  import pennylane
  from pennylane import qchem
  from pennylane import numpy
  from pennylane.templates.subroutines import UCCSD
label_desc: Use image node_id 12 for calling a global function with example usage: mock_from_cid(cid, record_type, pcp) and returns: pcp